package com.gxgeek.javabasic.dynamicproxy.jdk;

/**
 * Created by Administrator on 2017/7/9.
 */
public class UserServiceImpl implements UserService {
    private static int count;

    public UserServiceImpl() {
        count++;
        System.out.println(count);
    }

    @Override
    public String getName(int id) {
        System.out.println("------getName------");

        return "GX";
    }

    @Override
    public Integer getAge(int id) {
        System.out.println("------getAge------");
        return 18;
    }
}
